package com.mooc.lib_common;

import android.content.Context;
import android.util.AttributeSet;
import android.widget.FrameLayout;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;

/**
 * @ClassName: RoundFrameLayout$
 * @Description: java类作用描述
 * @Author: 魏靳元
 * @CreateDate: 2022/8/22 08:39
 * @UpdateRemark: 更新内容
 * @Version: 1.0
 */
public class RoundFrameLayout extends FrameLayout {
    public RoundFrameLayout(@NonNull Context context) {
        this(context,null);
    }

    public RoundFrameLayout(@NonNull Context context, @Nullable AttributeSet attrs) {
        this(context, attrs,0);
    }

    public RoundFrameLayout(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        this(context, attrs, defStyleAttr,0);
    }

    public RoundFrameLayout(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
        super(context, attrs, defStyleAttr, defStyleRes);
        ViewHelper.SetViewOutLine(this,attrs,defStyleAttr,defStyleRes);
    }

    public void setViewOutLine(int radius,int side){
        ViewHelper.SetViewOutLine(this,radius,side);
    }
}
